package com.bbx.api.sdk.net.passeger.conn;

import java.io.InputStream;

import android.content.Context;

import com.bbx.api.sdk.model.passanger.CancelOrder;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.GeneralParser;

/** 
 * @Path com.bbx.api.sdk.net.passeger.conn.StartUpNet.java
 * @Author 严旭文
 * @Date 2016-12-6 上午9:38:34
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 乘客app启用/唤醒时调用(未登入用户不需要调用)
 */
public class StartUpNet extends BaseNetwork {
	
	public StartUpNet(Context context, String datas) {
		super(context, false);
		setData(datas);
	}
	public StartUpNet(Context context) {
		super(context, false);
	}
    public void setData(String datas){
    	super.setData(datas);
    	url = STARTUP_Url;
		InputStream inputStream = getContentWithPOST((datas));
		if (inputStream != null) {
			parser = new GeneralParser(context, inputStream);
		}
    }
	@Override
	public Object getData() {
		return parser.getData(CancelOrder.class);
	}
}
